const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const contactSchema = new Schema({
  ly:{ 
    type:String,
    required:true
  },
  name: { 
    type:String,
    required:true
  },
  tel:{ 
    type:Number,
    required:true
  },
  email: { 
    type:String,
    required:true
  },
  qq: { 
    type:Number,
    required:true
  },
  desc: { 
    type:String,
    required:true
  },
  date:{
    type:Number,
    default:Date.now
  },
  reading:{//管理员是否已出理该反馈
    type:Boolean,
    default:false
  }

});

module.exports = mongoose.model("contact",contactSchema);